package com.feng.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.feng.domain.dto.AddArticleDto;
import com.feng.domain.dto.AdminUpdateGetArticleDto;
import com.feng.domain.entity.Article;
import com.feng.domain.ResponseResult;

import java.util.List;

public interface ArticleService extends IService<Article> {

    ResponseResult hotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult articleDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult addArticle(AddArticleDto addArticleDto);

    ResponseResult selectList(Integer pageNum, Integer pageSize, String title, String summary);

    ResponseResult getList(Long id);

    ResponseResult updateArticle(AdminUpdateGetArticleDto articleDto);

    ResponseResult deleteArticle(List<Long> idList);
}
